﻿using AMAP.Domain;
using AMAP.ServiceInterfaces.Common;
using System.Collections.Generic;

namespace AMAP.ServiceInterfaces
{
    public interface IExternalOrderService : IRepositoryService<ExternalOrder>
    {
        /// <summary>
        /// Gets and returns remaining stock among all external orders
        /// </summary>
        /// <returns>List of external order that still valid and have remaining items</returns>
        IList<ExternalOrder> GetStock();

        /// <summary>
        /// Returns the list of ExternalOrder that haven't been updated yet by supplier amap
        /// </summary>
        /// <returns>The list of ExternalOrder needed to be updated</returns>
        IList<ExternalOrder> GetLastUnupdatedExternalOrder();
    }
}
